table.lineups {
    border-spacing: 0;
    margin-bottom: 0;
	font-size: 10px;
	line-height:1.2em;
	text-align: left;
    vertical-align: top;
}

table.lineups {
	/*border: 1px solid gray;*/
	border-collapse: separate;
}

table.lineups th, table.lineups td {
    padding: 0em 0em;
}

table.lineups th {
    position: sticky;
    text-align: left;
    top: 0em;
}

table.lineups td {
    text-align: left;
}

table.lineups .bottom-header {
	border-bottom: 1px solid white;
}

table.lineups .top-header {
	border-top: 1px solid white;
}

table.lineups .right-header {
	border-right: 1px solid white;
}

table.lineups .col_other-goals,  table.lineups table.top-left-corner {
	border-right: 1px solid white;
}

table.lineups td.blankline {
	border: none;
	height: 20px;
}


/* Fixed Row */ 

table.lineups .fixed-row {
	font-weight: normal;
	z-index: 1;
}

table.lineups .fixed-row.row_1 {
    top: 0em;     		
    position: sticky;
}

table.lineups .fixed-row.row_2 {
    top: 130px;     		
    position: sticky;
}


/* Fixed Col */

table.lineups .fixed-col {
    z-index: 1;
}   

table.lineups .fixed-col.col_msg {
    left: 0em;     		
	min-width: 1em;
    position: sticky;
	height: 48px; 					
}

table.lineups .fixed-col.col_date {
    left: 1em;     		
	min-width: 9.5em;
    position: sticky;
}

table.lineups .fixed-col.col_opponents {
    left: 10.5em; 			
	min-width: 23em;
    position: sticky;
}

table.lineups .fixed-col.col_result {
    left: 33.5em;
	min-width: 2.5em;
    position: sticky;
}

table.lineups .fixed-col.col_score {
    left: 36em;
	min-width: 2.5em;
    position: sticky;
}

table.lineups .fixed-col.col_aet {
    left: 38.5em;
	min-width: 3em;
    position: sticky;
}

table.lineups .fixed-col.col_video {
    left: 41.5em; 
	min-width: 2em;
    position: sticky;
}

table.lineups .fixed-col.col_gate {
    left: 43.5em; 
	min-width: 5em;
    position: sticky;
}

table.lineups .fixed-col.col_other-goals {
    left: 48.5em; 
	min-width: 16px;
    position: sticky;
	text-align: center;
}


/* Fixed Row AND Col */

table.lineups .fixed-row.fixed-col {
/*	background: rgb(255, 255, 255);*/
	background-clip: padding-box;
	z-index: 2;
}   


/* Cols */

table.lineups .col_result, table.lineups .fixed-row.col_gate {
	text-align: center;
}

table.lineups .col9 {		/*what is Col9 ?*/
	min-width: 0.5em;
}

table.lineups .col10 {
	min-width: 100px;
}

table.lineups .col11 {
	min-width: 0.5em;
}

table.lineups .shirt.player {
	width: 0em; 												/* Forces correct size */                        
}

table.lineups .fixed-row.shirt {
	text-align: center;
}

table.lineups .ko, table.lineups .competition, table.lineups .pens, table.lineups .ht,  table.lineups .ft, table.lineups .aet, table.lineups .away_gate, table.lineups a.referee {
	font-size: 90%;
}

table.lineups .referee {
	text-align: right;
}
	
table.lineups .gate, table.lineups .ht, table.lineups .ft, table.lineups .away_gate {
	text-align: right;
}

table.lineups .result, table.lineups .pens {
	text-align: center;
}

table.lineups .H.col_date, table.lineups .H.col_opponents, table.lineups .H.col_result, table.lineups .H.col_score, table.lineups .H.col_gate {
	font-weight: bold;
}

table.lineups td.A {
	font-weight: normal;
}

table.lineups td.blankline {
	border: none;
	height: 20px;
}

table.lineups th.player_posn {
	border-top: 1px solid White;		
	border-right: 1px solid White;		
}


/* Colours */

table.lineups .fixed-col:not(.fixed-row), table.lineups th{
	background: LavenderBlush;
	background-clip: padding-box;
}

table.lineups .col_msg.expunged {
	background: lightgray;
}

table.lineups .col_msg.unofficial {
	background: lightgreen;
}

/* Must be after unofficial as abandoned takes precedence */
table.lineups .col_msg.abandoned {
	background: gold;
}

table.lineups .expunged.text, table.lineups .abandoned.text, table.lineups .unofficial.text {
	color: #800020;
}

table.lineups .expunged, table.lineups .abandoned, table.lineups .unofficial {
	font-style: italic;
}

table.lineups .shirt.player:not(.shirtnumber) {
	border-bottom: 1px solid WhiteSmoke;						/* Borders uncollapsed now so effectively 1/2 pixel */
	border-right: 1px solid WhiteSmoke;						    /* Borders uncollapsed now so effectively 1/2 pixel */
	background-color: white;
}

table.lineups .shirt.player.starter, table.playernametable.starter {
	background-color: #C8C8C8; /*#FFD1DB;*/
}

table.lineups .shirt.player.substitute, table.playernametable.substitute {
	background-color: #E4E4E4;
}

table.lineups .shirt.player.unknownstarter, table.playernametable.unknownstarter {
	background-color: #D4D4D4;
}

table.lineups .shirt.player.substitute.unused, table.playernametable.substitute.unused {
	color: silver;
	background-color: #F0F0F0;
}

table.lineups .shirt.player.substitute.notnamed, table.playernametable.substitute.notnamed {
	background-color: white;
}

table.lineups .shirt.player.substitute.notallowed, table.playernametable.substitute.notallowed  {
	background-color: LavenderBlush;
}

table.lineups .col9:not(.fixed-row), table.lineups .col10:not(.fixed-row), table.lineups .col11:not(.fixed-row){
	background-color: #FAFAFA;
}

table.lineups .ko, table.lineups .competition, table.lineups .ht,  table.lineups .ft, table.lineups .away_gate, table.lineups .referee {
	color: gray;
}


/* Rotation */

table.lineups .expunged.text, table.lineups .abandoned.text, table.lineups .unofficial.text {
  font-style: normal;
  width: 1em;
  white-space: nowrap;

  transform: 
    /* Magic Numbers */
    translate(-0.1em, 1.75em)
    /* 45 is really 360 - 45 */
    rotate(-90deg);
}


/* Other */

.btn:focus,
.btn:active {
  box-shadow: none;
}

.competitionname {
	text-decoration: underline;
	font-size: 100%;
}

.shirt.keeper {
	text-align: center;
}

.subst {
	height: 50px;
}


/* Other tables */

table.playernametable, table.playernumbertable {
	border-collapse: collapse;    
	margin: 0px;
}

table.playernametable td {
	width: 13px;				/* Was 12 until Bazeley-Graham played */
	min-width: 13px;			/* Ditto */
	height: 10px;
	font-size: 10px;
	text-align: center;
	font-weight: normal;
	padding: 0px;
}

table.playernametable tr:nth-of-type(2) td, tr:nth-of-type(3) td {
	min-height: 12px
}

table.playernametable tr:nth-of-type(4) td {
	min-height: 5px
}

table.playernumbertable {
	border-collapse: collapse;
	margin: 0px; 
	width: 24px;
	padding: 0px;
}

table.playernumbertable td {
	height: 13px;
	font-size: 10px;
	/*line-height:1.0em;*/
	text-align: center;
	font-weight: normal;
	margin: 0px;
	padding: 0px;
}

table.playernumbertable td.goals {
	width: 13px;
	padding-left: 1px;
	padding-top: 1px;
}

table.playernumbertable td.discipline {
	width: 11px;
	padding-right: 1px;
	padding-top: 1px;
}

table.lineups td.playernumbertable.shirt {	
	height: 13px;
}

table.playernumbertable tr:nth-of-type(2) td {
	height: 12px;
}

table.playernumbertable tr:nth-of-type(3) td {
	height: 7px;
}

table.lineups .playernametable, table.lineups .playernumbertable  {
    padding: 0em;
}

th.rotate {
  /* Something you can count on */
  height: 130px;
  white-space: nowrap;
  
}

th.rotate > div {
  transform: 
    /* Magic Numbers */
    translate(9px, 60px)
    /* 45 is really 360 - 45 */
    rotate(270deg);
  width: 6px;
}
